public class Student {
    int number,age;
    String name;
    public void print(){
        System.out.println("学生信息:学号为:"+number+",姓名为:"+name+",年龄为:"+age+"岁");
    }
    public static void main(String[] args) {
        Student student1=new Student();
        student1.name="小明";
        student1.number=11;
        student1.age=18;
        student1.print();
        Student student2=new Student();
        student2.name="小黄";
        student2.number=12;
        student2.age=20;
        student2.print();
        Student student3=new Student();
        student3.name="小白";
        student3.number=13;
        student3.age=21;
        student3.print();
    }
}
